package com.pwc.fusion.interceptor;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Component;
import org.springframework.web.servlet.handler.HandlerInterceptorAdapter;


@Component
public class AuthenticationInterceptor extends HandlerInterceptorAdapter {

	@Override
	public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler)
			throws Exception {

		//Account account = (Account) request.getSession().getAttribute("account");

//		if (account == null) {
//			response.sendRedirect(request.getContextPath());
//			return false;
//		}

		return super.preHandle(request, response, handler);
	}

}
